﻿
using HBase;
using System.Collections.Generic;

namespace hCommand {
    public interface ICoreTaskServer : IExtendsServer {
        Page<CoreTask> QueryCoreTaskPage(CoreTaskDto dto);
        int  countCoreTask(CoreTaskStatus dto);
        Page<CoreTask> QueryCoreYTaskPage<CoreTask>(CoreTaskDto dto);
        List<CoreTaskParam> GetListByTaskId(long taskId); 
        List<CoreTaskParam> getWorkingTaskParam();
        List<CoreTaskParam> getTaskParamByTaskId(long id);
        void updateTaskParamStatus(long paramId ,CoreTaskParamStatus status);

        List<CoreTask> getfinshTasksforBackUp();
        List<CoreTask> getTasksByStockId(long stockId);

        List<string> GetUser(string name ,string password);
        List<CoreTask> getfinshTasksforUpload();

        List<CoreTask> getfinshTasksforDelete();

        List<CoreTask> getTaskByWave(string waveNO);
        void updateedTask(long id);

        int updateTaskStatus(TaskStatusPersistence tsp);
        int beginTask(BaseTask bt);

        int updateParamAt(long paramId ,int stn);
        int changeTime(long paramId);
        bool splitParam(long paramId);
        string paramDelete(long paramId);
    }
}
